from fdfs_client.client import Fdfs_client,get_tracker_conf
from mutagen._senf._compat import StringIO

track=get_tracker_conf(conf_path='/Users/admin/PycharmProjects/meiduo_prodoct/meiduo_mall/meiduo_mall/utils/fastfdfs/client.conf')

client=Fdfs_client(track)
ret=client.upload_by_filename('/Users/admin/Desktop/adv02.jpg')
